package com.dw.apis;

import com.dw.common.entitys.BaseResponse;
import com.dw.model.auth.dtos.AuthUserDTO;
import com.dw.model.user.dtos.QueryUserDTO;
import com.dw.model.user.vos.GetUserVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("dwb-user")
public interface UserClient {

    @PostMapping("/user/login")
    BaseResponse<Long> login(AuthUserDTO authUserDTO);

    @GetMapping("/user/{id}")
    BaseResponse<GetUserVO> getUserName(@PathVariable("id") Long id);

}
